﻿using System;

namespace TheSnake
{
    public class CollisionException : ApplicationException
    {
        public GameObject Obj { get; set; }

        public CollisionException(string message, GameObject obj)
            : base(message)
        {
            this.Obj = obj;
        }

        public override string Message
        {      
            get{
                string result = String.Format("The food position will be changed!");
                return result;
            }
        }
    }
}
